package com.hnucm.cooklife.base.utils;
//常量
public class Constant {
    /**
     * 设置文件的保存名称
     */
    public static final String CONFIG_SETTINGS = "settings";

    /**
     * 获取成功
     */
    public static final int SUCCESS = 0;


    public static final String MY_POST_DISH_URL = "/Dish/Dish/getDishByUser/{userid}";

    /**
     * key-night-mode
     */
    public static final String KEY_NIGHT_MODE = "night_mode";

    //搜索结果正则表达式
    public static final String REGEX = "<em class='highlight'>(.+)</em>";

    //域名
    public static final String BASE_URL = "http://j3u2db64.dnat.tech/";

    //Dish<<url
    public static final String DISH_URL = "/Dish/getDish/{currentPage}";

    //上传 dish
    public static final String UP_DISH_URL = "/DishDetail/uploadDishDetail";

    //my dish
    public static final String MY_DISH_URL = "/Collect/findCollectByUser/{userId}";

    //my collect
    public static final String MY_COLLECT_URL = "/Collect/findCollectByUser/{userId}";

    //Foll << url
    public static final String FOLL_URL = "/Foll/getFoll/{owner}";

    //Login 登录
    public static final String LOGIN_URL = "/user/login";

    //收藏菜谱
    public static final String TO_COLLECT_URL = "/Collect/addById/{userId}/{dishId}";

    //取消收藏菜谱
    public static final String TO_UNCOLLECT_URL = "/Collect/deleteById/{userId}/{dishId}";

    //热词数据
    public static final String HOTKEY_URL = "/Hot/getHot";

//    //原料数据
//    public static final String ORIGIN_URL = "/getu";

    //分类数据
    public static final String CLAS_URL = "/Clas/getClas";

    //商店数据
    public static final String ORDER_URL = "/Order/getOrder";

    //商品详情书籍
    public static final String ORDER_DETAIL_URL = "/OrderTDetail/getOrderTDetailById";

    //菜谱详情信息
    public static final String DISH_DETAIL_URL = "/DishDetail/getDishDetail";

    //根据菜谱名搜索菜谱
    public static final String DISH_RESULT = "/Dish/getDishByName/{currentPage}";

    //根据用户id获取用户信息
    public static final String USER_URL = "/user/get/{userId}";

    //更换背景
    public static final String UPDATE_BG_URL = "/user/updateUserBg/{userId}";

    //更换头像
    public static final String UPDATE_ICON_URL = "/user/updateIcon/{userId}";

    /*
     * user-name
     */
    public static final String EXTRA_KEY_USERNAME = "referrer";

    /**
     * user-password
     */
    public static final String EXTRA_VALUE_PASSWORD = "collect";

    public static final String UPLOAD_LOCAL = "upload";

    public static final String UPLOAD_YUN = "/uploadFile";


    //获取我的作品
    public static final String MY_WORK_URL = "/Work/findByUser/{userId}";

    //获取浏览历史
    public static final String HISTROY_URL = "/History/get";

    //更新浏览历史
    public static final String UPDATE_HISTORY = "/History/update";




    //key-keyword
    public static final String KEY_KEYWORD = "keyword";

    //分类跳转搜索
    public static final String CLAS_KEYWORD = "clasword";
}
